﻿using System;
using System.Collections.Generic;
using System.Text;

using ATA.Entities;

namespace ATA.Business
{
    public partial class KhachHangDuthuongService : ATA.Business.KhachHangDuthuongServiceBase
    {
        public KhachHangDuthuong GetByCustomerID(Guid pv_guidCustomerID)
        {
            KhachHangDuthuong v_entResult = null;

            TList<KhachHangDuthuong> v_lsResults = this.Find("IsActive = TRUE AND HOIVIENID = '" + pv_guidCustomerID.ToString() + "'");

            if (v_lsResults.Count > 0)
            {
                v_entResult = v_lsResults[0];
            }
            return v_entResult;
        }
    }
}
